Optimal. Leaf size=680 \[ -\frac {b^2 (b B-2 a C) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{(b c-a d) (b e-a f) (b g-a h) (a+b x)}+\frac {b (b B-2 a C) \sqrt {f} \sqrt {-d e+c f} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {g+h x} E\left (\sin ^{-1}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{(b c-a d) (b e-a f) (b g-a h) \sqrt {e+f x} \sqrt {\frac {d (g+h x)}{d g-c h}}}-\frac {(b B-2 a C) \sqrt {f} \sqrt {-d e+c f} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} F\left (\sin ^{-1}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{(b c-a d) (b e-a f) \sqrt {e+f x} \sqrt {g+h x}}-\frac {\sqrt {-d e+c f} \left (4 a^3 C d f h+2 a b^2 B (d f g+d e h+c f h)-b^3 (B d e g-c (2 C e g-B f g-B e h))-a^2 b (3 B d f h+2 C (d f g+d e h+c f h))\right ) \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} \Pi \left (-\frac {b (d e-c f)}{(b c-a d) f};\sin ^{-1}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{(b c-a d)^2 \sqrt {f} (b e-a f) (b g-a h) \sqrt {e+f x} \sqrt {g+h x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.12, antiderivative size = 680, normalized size of antiderivative = 1.00, number of steps
used = 13, number of rules used = 11, integrand size = 60, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.183, Rules used = {24, 1613,
1621, 175, 552, 551, 164, 115, 114, 122, 121} \begin {gather*} -\frac {\sqrt {c f-d e} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} \left (4 a^3 C d f h-a^2 b (3 B d f h+2 C (c f h+d e h+d f g))+2 a b^2 B (c f h+d e h+d f g)-b^3 (B d e g-c (-B e h-B f g+2 C e g))\right ) \Pi \left (-\frac {b (d e-c f)}{(b c-a d) f};\text {ArcSin}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {c f-d e}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{\sqrt {f} \sqrt {e+f x} \sqrt {g+h x} (b c-a d)^2 (b e-a f) (b g-a h)}-\frac {\sqrt {f} (b B-2 a C) \sqrt {c f-d e} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} F\left (\text {ArcSin}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {c f-d e}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{\sqrt {e+f x} \sqrt {g+h x} (b c-a d) (b e-a f)}+\frac {b \sqrt {f} \sqrt {g+h x} (b B-2 a C) \sqrt {c f-d e} \sqrt {\frac {d (e+f x)}{d e-c f}} E\left (\text {ArcSin}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {c f-d e}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{\sqrt {e+f x} (b c-a d) (b e-a f) (b g-a h) \sqrt {\frac {d (g+h x)}{d g-c h}}}-\frac {b^2 \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x} (b B-2 a C)}{(a+b x) (b c-a d) (b e-a f) (b g-a h)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 24
Rule 114
Rule 115
Rule 121
Rule 122
Rule 164
Rule 175
Rule 551
Rule 552
Rule 1613
Rule 1621
Rubi steps
\begin {align*} \int \frac {a b B-a^2 C+b^2 B x+b^2 C x^2}{(a+b x)^3 \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx &=\frac {\int \frac {b^2 (b B-a C)+b^3 C x}{(a+b x)^2 \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{b^2}\\ &=-\frac {b^2 (b B-2 a C) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{(b c-a d) (b e-a f) (b g-a h) (a+b x)}+\frac {\int \frac {b^2 \left (b^2 C (2 b c e g-a (d e g+c f g+c e h))-(b B-a C) \left (2 a^2 d f h+b^2 (d e g+c f g+c e h)-2 a b (d f g+d e h+c f h)\right )\right )+2 a b^3 (b B-2 a C) d f h x+b^4 (b B-2 a C) d f h x^2}{(a+b x) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{2 b^2 (b c-a d) (b e-a f) (b g-a h)}\\ &=-\frac {b^2 (b B-2 a C) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{(b c-a d) (b e-a f) (b g-a h) (a+b x)}+\frac {\int \frac {a b^3 B d f h-2 a^2 b^2 C d f h+\left (b^4 B d f h-2 a b^3 C d f h\right ) x}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{2 b^2 (b c-a d) (b e-a f) (b g-a h)}+\frac {\left (4 a^3 C d f h+2 a b^2 B (d f g+d e h+c f h)-b^3 (B d e g-c (2 C e g-B f g-B e h))-a^2 b (3 B d f h+2 C (d f g+d e h+c f h))\right ) \int \frac {1}{(a+b x) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{2 (b c-a d) (b e-a f) (b g-a h)}\\ &=-\frac {b^2 (b B-2 a C) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{(b c-a d) (b e-a f) (b g-a h) (a+b x)}-\frac {((b B-2 a C) d f) \int \frac {1}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{2 (b c-a d) (b e-a f)}+\frac {(b (b B-2 a C) d f) \int \frac {\sqrt {g+h x}}{\sqrt {c+d x} \sqrt {e+f x}} \, dx}{2 (b c-a d) (b e-a f) (b g-a h)}-\frac {\left (4 a^3 C d f h+2 a b^2 B (d f g+d e h+c f h)-b^3 (B d e g-c (2 C e g-B f g-B e h))-a^2 b (3 B d f h+2 C (d f g+d e h+c f h))\right ) \text {Subst}\left (\int \frac {1}{\left (b c-a d-b x^2\right ) \sqrt {e-\frac {c f}{d}+\frac {f x^2}{d}} \sqrt {g-\frac {c h}{d}+\frac {h x^2}{d}}} \, dx,x,\sqrt {c+d x}\right )}{(b c-a d) (b e-a f) (b g-a h)}\\ &=-\frac {b^2 (b B-2 a C) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{(b c-a d) (b e-a f) (b g-a h) (a+b x)}-\frac {\left ((b B-2 a C) d f \sqrt {\frac {d (e+f x)}{d e-c f}}\right ) \int \frac {1}{\sqrt {c+d x} \sqrt {\frac {d e}{d e-c f}+\frac {d f x}{d e-c f}} \sqrt {g+h x}} \, dx}{2 (b c-a d) (b e-a f) \sqrt {e+f x}}-\frac {\left (\left (4 a^3 C d f h+2 a b^2 B (d f g+d e h+c f h)-b^3 (B d e g-c (2 C e g-B f g-B e h))-a^2 b (3 B d f h+2 C (d f g+d e h+c f h))\right ) \sqrt {\frac {d (e+f x)}{d e-c f}}\right ) \text {Subst}\left (\int \frac {1}{\left (b c-a d-b x^2\right ) \sqrt {1+\frac {f x^2}{d \left (e-\frac {c f}{d}\right )}} \sqrt {g-\frac {c h}{d}+\frac {h x^2}{d}}} \, dx,x,\sqrt {c+d x}\right )}{(b c-a d) (b e-a f) (b g-a h) \sqrt {e+f x}}+\frac {\left (b (b B-2 a C) d f \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {g+h x}\right ) \int \frac {\sqrt {\frac {d g}{d g-c h}+\frac {d h x}{d g-c h}}}{\sqrt {c+d x} \sqrt {\frac {d e}{d e-c f}+\frac {d f x}{d e-c f}}} \, dx}{2 (b c-a d) (b e-a f) (b g-a h) \sqrt {e+f x} \sqrt {\frac {d (g+h x)}{d g-c h}}}\\ &=-\frac {b^2 (b B-2 a C) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{(b c-a d) (b e-a f) (b g-a h) (a+b x)}+\frac {b (b B-2 a C) \sqrt {f} \sqrt {-d e+c f} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {g+h x} E\left (\sin ^{-1}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{(b c-a d) (b e-a f) (b g-a h) \sqrt {e+f x} \sqrt {\frac {d (g+h x)}{d g-c h}}}-\frac {\left ((b B-2 a C) d f \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}}\right ) \int \frac {1}{\sqrt {c+d x} \sqrt {\frac {d e}{d e-c f}+\frac {d f x}{d e-c f}} \sqrt {\frac {d g}{d g-c h}+\frac {d h x}{d g-c h}}} \, dx}{2 (b c-a d) (b e-a f) \sqrt {e+f x} \sqrt {g+h x}}-\frac {\left (\left (4 a^3 C d f h+2 a b^2 B (d f g+d e h+c f h)-b^3 (B d e g-c (2 C e g-B f g-B e h))-a^2 b (3 B d f h+2 C (d f g+d e h+c f h))\right ) \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}}\right ) \text {Subst}\left (\int \frac {1}{\left (b c-a d-b x^2\right ) \sqrt {1+\frac {f x^2}{d \left (e-\frac {c f}{d}\right )}} \sqrt {1+\frac {h x^2}{d \left (g-\frac {c h}{d}\right )}}} \, dx,x,\sqrt {c+d x}\right )}{(b c-a d) (b e-a f) (b g-a h) \sqrt {e+f x} \sqrt {g+h x}}\\ &=-\frac {b^2 (b B-2 a C) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}}{(b c-a d) (b e-a f) (b g-a h) (a+b x)}+\frac {b (b B-2 a C) \sqrt {f} \sqrt {-d e+c f} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {g+h x} E\left (\sin ^{-1}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{(b c-a d) (b e-a f) (b g-a h) \sqrt {e+f x} \sqrt {\frac {d (g+h x)}{d g-c h}}}-\frac {(b B-2 a C) \sqrt {f} \sqrt {-d e+c f} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} F\left (\sin ^{-1}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{(b c-a d) (b e-a f) \sqrt {e+f x} \sqrt {g+h x}}-\frac {\sqrt {-d e+c f} \left (4 a^3 C d f h+2 a b^2 B (d f g+d e h+c f h)-b^3 (B d e g-c (2 C e g-B f g-B e h))-a^2 b (3 B d f h+2 C (d f g+d e h+c f h))\right ) \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} \Pi \left (-\frac {b (d e-c f)}{(b c-a d) f};\sin ^{-1}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{(b c-a d)^2 \sqrt {f} (b e-a f) (b g-a h) \sqrt {e+f x} \sqrt {g+h x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 34.26, size = 3409, normalized size = 5.01 \begin {gather*} \text {Result too large to show} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(13368\) vs.
\(2(623)=1246\).
time = 0.12, size = 13369, normalized size = 19.66
method | result | size |
elliptic | \(\frac {\sqrt {\left (d x +c \right ) \left (f x +e \right ) \left (h x +g \right )}\, \left (\frac {b^{2} \left (B b -2 a C \right ) \sqrt {d f h \,x^{3}+c f h \,x^{2}+d e h \,x^{2}+d f g \,x^{2}+c e h x +c f g x +d e g x +c e g}}{\left (a^{3} d f h -a^{2} b c f h -a^{2} b d e h -a^{2} b d f g +a \,b^{2} c e h +a \,b^{2} c f g +a \,b^{2} d e g -b^{3} c e g \right ) \left (b x +a \right )}-\frac {a d f h \left (B b -2 a C \right ) \left (-\frac {e}{f}+\frac {g}{h}\right ) \sqrt {\frac {x +\frac {g}{h}}{-\frac {e}{f}+\frac {g}{h}}}\, \sqrt {\frac {x +\frac {c}{d}}{-\frac {g}{h}+\frac {c}{d}}}\, \sqrt {\frac {x +\frac {e}{f}}{-\frac {g}{h}+\frac {e}{f}}}\, \EllipticF \left (\sqrt {\frac {x +\frac {g}{h}}{-\frac {e}{f}+\frac {g}{h}}}, \sqrt {\frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {c}{d}}}\right )}{\left (a^{3} d f h -a^{2} b c f h -a^{2} b d e h -a^{2} b d f g +a \,b^{2} c e h +a \,b^{2} c f g +a \,b^{2} d e g -b^{3} c e g \right ) \sqrt {d f h \,x^{3}+c f h \,x^{2}+d e h \,x^{2}+d f g \,x^{2}+c e h x +c f g x +d e g x +c e g}}-\frac {b d f h \left (B b -2 a C \right ) \left (-\frac {e}{f}+\frac {g}{h}\right ) \sqrt {\frac {x +\frac {g}{h}}{-\frac {e}{f}+\frac {g}{h}}}\, \sqrt {\frac {x +\frac {c}{d}}{-\frac {g}{h}+\frac {c}{d}}}\, \sqrt {\frac {x +\frac {e}{f}}{-\frac {g}{h}+\frac {e}{f}}}\, \left (\left (-\frac {g}{h}+\frac {c}{d}\right ) \EllipticE \left (\sqrt {\frac {x +\frac {g}{h}}{-\frac {e}{f}+\frac {g}{h}}}, \sqrt {\frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {c}{d}}}\right )-\frac {c \EllipticF \left (\sqrt {\frac {x +\frac {g}{h}}{-\frac {e}{f}+\frac {g}{h}}}, \sqrt {\frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {c}{d}}}\right )}{d}\right )}{\left (a^{3} d f h -a^{2} b c f h -a^{2} b d e h -a^{2} b d f g +a \,b^{2} c e h +a \,b^{2} c f g +a \,b^{2} d e g -b^{3} c e g \right ) \sqrt {d f h \,x^{3}+c f h \,x^{2}+d e h \,x^{2}+d f g \,x^{2}+c e h x +c f g x +d e g x +c e g}}+\frac {\left (3 B \,a^{2} b d f h -2 B a \,b^{2} c f h -2 B a \,b^{2} d e h -2 B a \,b^{2} d f g +B \,b^{3} c e h +B \,b^{3} c f g +B \,b^{3} d e g -4 a^{3} C d f h +2 C \,a^{2} b c f h +2 C \,a^{2} b d e h +2 C \,a^{2} b d f g -2 C \,b^{3} c e g \right ) \left (-\frac {e}{f}+\frac {g}{h}\right ) \sqrt {\frac {x +\frac {g}{h}}{-\frac {e}{f}+\frac {g}{h}}}\, \sqrt {\frac {x +\frac {c}{d}}{-\frac {g}{h}+\frac {c}{d}}}\, \sqrt {\frac {x +\frac {e}{f}}{-\frac {g}{h}+\frac {e}{f}}}\, \EllipticPi \left (\sqrt {\frac {x +\frac {g}{h}}{-\frac {e}{f}+\frac {g}{h}}}, \frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {a}{b}}, \sqrt {\frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {c}{d}}}\right )}{\left (a^{3} d f h -a^{2} b c f h -a^{2} b d e h -a^{2} b d f g +a \,b^{2} c e h +a \,b^{2} c f g +a \,b^{2} d e g -b^{3} c e g \right ) b \sqrt {d f h \,x^{3}+c f h \,x^{2}+d e h \,x^{2}+d f g \,x^{2}+c e h x +c f g x +d e g x +c e g}\, \left (-\frac {g}{h}+\frac {a}{b}\right )}\right )}{\sqrt {d x +c}\, \sqrt {f x +e}\, \sqrt {h x +g}}\) | \(1211\) |
default | \(\text {Expression too large to display}\) | \(13369\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {-C\,a^2+B\,a\,b+C\,b^2\,x^2+B\,b^2\,x}{\sqrt {e+f\,x}\,\sqrt {g+h\,x}\,{\left (a+b\,x\right )}^3\,\sqrt {c+d\,x}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________